package com.young.springdemo.service.builderFactoryTest;

public class ServerComputerBuilder extends ComputerBuilder {
    @Override
    public void buildCpu() {
        computer.setCpu("创建server CPU");
    }

    @Override
    public void buildMemory() {
        computer.setMemory("server的内存要大点");
    }

    @Override
    public void buildHardDisk() {
        computer.setHardDisk("server的硬盘要大点");
    }

    @Override
    public void buildHost() {
        computer.setHost("server的主机");
    }

    @Override
    public void buildScreen() {
        computer.setScreen("server 不需要显示器");
    }
    public boolean isScreen(){
        return true;
    }
}
